$.ajax({
    type: 'get',
    url: '/posts/count',
    success (res) {
        $('#postBox').html(`<strong>${res.postCount}</strong>篇文章（<strong>${res.draftCount}</strong>篇草稿）`)
    }
})

$.ajax({
    type: 'get',
    url: '/categories/count',
    success (res) {
        $('#categoryBox').html(`<strong>${res.categoryCount}</strong>个分类`)
    }
})